<template>
  <div style="min-width: 1200px">
    <div class="paysuccessBox">
      <div class="mainBox">
        <div class="paysuccessInfo">
          <div class="topIcon">
            <sicon size="50" type="3.1已关注店铺" color="#6aaf06" />
          </div>
          <div class="topInfo">
            <h1>恭喜您，支付成功啦！</h1>
          </div>
        </div>
        <div class="footerBox">
          <button class="btn" @click="toOrder">查看订单</button>
          <button class="btn" style="background-color: #8d8dff" @click="toHome">
            继续购物
          </button>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
export default {
  name: "SPaysuccess",
};
</script>

<script lang="ts" setup>
import sicon from "@/components/sicon/sicon.vue";
import { useRouter } from "vue-router";
const router = useRouter();
const toOrder = () => {
  router.push({
    name: "Order",
  });
};
const toHome = () => {
  router.push({
    name: "Home",
  });
};
</script>
<style scoped lang="less">
.paysuccessBox {
  width: 1200px;
  margin: 0 auto;
  height: calc(100vh - 650px);
  min-height: 250px;
}
.paysuccessInfo,
.footerBox {
  padding: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mainBox {
  margin: 20px;
  border: 1px solid #ccc;
}
.footerBox {
  padding-top: 0;
  .btn {
    min-width: 120px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    background-color: #f00;
    margin: 0 20px;
    border-radius: 5px;
  }
}

</style>
